import Vue from 'vue'
import App from './App'

document.addEventListener('dragleave', function (e) {
  e.preventDefault()
})
document.addEventListener('drop', function (e) {
  e.preventDefault()
})
document.addEventListener('dragenter', function (e) {
  e.preventDefault()
})
document.addEventListener('dragover', function (e) {
  e.preventDefault()
})

Vue.config.productionTip = false

import axios from 'axios'
Vue.prototype.$http = axios
Vue.prototype.getType = function (name) {
  return name.substr(name.lastIndexOf('.') + 1, name.length - 1)
}

/* eslint-disable no-new */
new Vue({
  el: '#app',
  render: h => h(App)
})
